package cn.lin.spring.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ServiceBImpl implements ServiceB {

    @Autowired
    ServiceA serviceA;

    @Override
    public String sayByB(String what) {
        System.out.println("---- say hello from B ");
        return "B";
    }
}
